package com.design.pattern;

public class Test {

	public static void main(String[] args) {
		
		
		
		
		Singleton1 singleton1 = Singleton1.getSingeton1();
		Singleton1 singleton12 = Singleton1.getSingeton1();
		
		System.out.println(singleton1);
		System.out.println(singleton12);
		
		
		Singleton2 singleton2 = Singleton2.getInstance();
		Singleton2 singleton22 = Singleton2.getInstance();
		
		System.out.println(singleton2);
		System.out.println(singleton22);
		
		
		
		
	}
}
